import request from '@/router/axios'
import { baseUrl } from '@/config/env'

// 添加学习态度
export function addLearningAttitude(data) {
    return request({
        url: baseUrl + '/pc/learning-attitude',
        method: 'post',
        data
    })
}

// 查询学习态度
export function getLearningAttitude(data) {
    return request({
        url: baseUrl + '/pc/learning-attitude',
        method: 'get',
        params: data
    })
}

// 更新学习态度
export function updateLearningAttitude(data) {
    return request({
        url: baseUrl + '/pc/learning-attitude',
        method: 'put',
        data
    })
}

// 删除学习态度
export function deleteLearningAttitude(data) {
    return request({
        url: baseUrl + '/pc/learning-attitude',
        method: 'delete',
        data
    })
}
